﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ImageUploader.aspx.cs" Inherits="Serenity.Modules.fckeditor.editor.filemanager.ImageUploader.ImageUploader" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<style>
    fieldset
    {
        padding: 5px;
        margin: 5px;    
    }
</style>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ImageUploader</title>
</head>
<body>
    <form id="form1" runat="server">
        <fieldset><legend>Дерево</legend>
            <asp:PlaceHolder ID="ph_Catalog" runat="server" />
        </fieldset>
        <div style="width: 50%; float: left;">
            <fieldset><legend>Новый каталог</legend>
                <asp:TextBox ID="tb_NewFolderName" Width="150" runat="server" />
                <asp:Button ID="btn_CreateFolder" Text="Создать папку" OnClick="CreateFolder" runat="server" />
            </fieldset>
        </div>
        <div style="width: 50%; float: left;">
            <fieldset><legend>Загрузка изображения</legend>
                <asp:FileUpload ID="fu_File" runat="server" />
                <asp:Button ID="btn_Upload" runat="server" OnClick="Upload" Text="Загрузить" />
            </fieldset>
        </div>
    </form>
</body>
</html>

<script language=javascript>
    
    function SetItem(path)
    {
        window.opener.document.getElementById('txtUrl').value = path;
        window.close();
    }
</script>
